package com.xiaotao.learn.thread.concurrent.cas.simple;

public class UnsafeHandler extends NumberClass implements NumberHandler {
    @Override
    public void increase() {
        value++;
    }

    @Override
    public void decrease() {
        value--;
    }

    @Override
    public long getValue() {
        return value;
    }

    @Override
    public void reset() {
        value = 0;
    }
}
